home *** CD-ROM | disk | FTP | other *** search
Text File | 2002-06-17 | 973 b | 28 lines | [TEXT/????] |
- #!/bin/sh
-
- # we'll first check if we already have preferences: that means that another version
- # is already installed. As this is our first official release, we'll kill any
- # previous pref file, as it's most likely incompatible. To be able to remove the
- # prefs file, it's necessary to kill the daemon first
-
- LCC_PREF_FILE="/Users/$USER/Library/Preferences/com.Logitech.Control Center Daemon.plist"
- NEW_DAEMON="/Library/Application Support/Logitech/LCCDAemon.app"
- OLD_DAEMON="/Library/Application Support/Logitech/Logitech Control Center Daemon.app"
-
- if [ -e "$LCC_PREF_FILE" ] ; then
-
- # quit the daemon and the config if they are running
- if [ -e "$NEW_DAEMON" ] ; then
- /usr/bin/osascript -e 'Tell application "LCCDaemon" to quit'
- fi
-
- # also quit any pre beta14
- if [ -e "$OLD_DAEMON" ] ; then
- /usr/bin/osascript -e 'Tell application "Logitech Control Center Daemon" to quit'
- fi
-
- # and finally remove the file for this user
- /bin/rm -f "$LCC_PREF_FILE"
-
- fi
-